<?php $this->load->view('common/head_open'); ?>
<script type="text/javascript">
$(document).ready(function(){
	var email_exp = /\S+@\S+\.\S+/;
	var check_email_letter=/^\s*[a-zA-Z0-9_.@\-\s]+\s*$/;
	email=$("#email");
	password=$("#password");
	$("#email").keyup(function(){
		if($(this).val()!='')
		{
		 	if(check_email_letter.test($(this).val())==false||$(this).val().indexOf(" ")>0||email_exp.test($(this).val())==false)
		 	{ 
				$(".error").html("<?php if(isset($javscript_error['invalid_email'])) echo $javscript_error['invalid_email']  ?>");
				$(this).focus();
				return false;
		 	}
		 	else
		 	{
				$(".error").html('');
			}
		}
		else
		{
			$(".error").html('');
		}
	});
	$("#password").focusin(function(){
		if(email.val()=='')	
		{
			$(".error").html("<?php if(isset($javscript_error['email'])) echo $javscript_error['email']  ?>");
	        email.focus();
	        return false;
		}
		else if(email_exp.test(email.val())==false)
		{ 
			$(".error").html("<?php if(isset($javscript_error['invalid_email'])) echo $javscript_error['invalid_email']  ?>");
			email.focus();
			return false;
		}
		
	});
	$("#join_member").click(function(){
		category=$('input[name=category]:checked');
		if(category.val()=='join_in')
		{
			if(email.val()=='')	
			{
				$(".error").html("<?php if(isset($javscript_error['email'])) echo $javscript_error['email']  ?>");
				email.focus();
				return false;
			}
			else if(email_exp.test(email.val())==false)
			{ 
				$(".error").html("<?php if(isset($javscript_error['invalid_email'])) echo $javscript_error['invalid_email']  ?>");
				email.focus();
				return false;
			}
			else if(password.val()=='')
			{ 
				$(".error").html("<?php if(isset($javscript_error['password'])) echo $javscript_error['password']  ?>");
				password.focus();
				return false;
			}
			else if(password.val().length<5)
			{
				$(".error").html("<?php if(isset($javscript_error['min_password_length'])) echo $javscript_error['min_password_length']  ?>");
				password.focus();
				return false;
			}
			else
			{
				$("#login_form").submit();
			}
		}
		if(category.val()=='forgot')
		{
			var url = './forgot_password';
			$(location).attr('href',url);
		}
		if(category.val()=='join_as')
		{
			var url = './join_as';
			$(location).attr('href',url);
		}
	});
});
</script>
<?php $this->load->view('common/head_close'); ?>
<!--wrapper starts-->
<section class="wrapper">
	<!--header starts-->
	<?php $this->load->view('common/header'); ?>
	<!--header closed-->
	<!--Container starts-->
	<div class="container-fluid">
		<section class="Container" style="padding-left: 96px; padding-right: 184px;">
			<h1>About Zigya</h1>
			<!--information starts-->
			<div class="col-md-10 col-sm-10 col-lg-10 col-xs-12 zero-padding">
				<div class="information">
					<!--information_inner starts-->
					<?php if($value=='about'){ ?>
					<?php $this->load->view('common/information_about_us'); ?>
					<?php } if($value=='contact'){?>
					<?php $this->load->view('common/information_contact_us'); }?>
					<!--information_inner closed-->
					<div class="clear"></div>
				</div>
			</div>
			<!--information closed-->
			<!--information_aside starts-->
			<?php $this->load->view('common/information_aside'); ?>
			<!--information_aside closed-->
			<div class="clear"></div>
		</section>
	</div>
	<!--Container closed-->
</section>
<!--wrapper closed-->
<?php $this->load->view('common/footer'); ?>